<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="keywords" content=""/>
<meta name="description" content="">
<meta name="author" content=""/>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<title>我的收藏</title>
<link rel="stylesheet" type="text/css" href="/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="/assets/css/shenjiahuang.css">
  <script src="/assets/js/jquery-1.8.0.min.js"></script>
  <script type="text/javascript">
  	function canclecollection(id){
  		if(confirm("确定取消该文章收藏?")){
  			var url = "/collection/cancle";
  	  		$.post(
  	  			url,
  	  			{collectionid:id},
  	  			function(data){
  	  				window.location.reload();
  	  			}
  	  		);
  			
  		}
  	}
  
  </script>
</head>

<body id="shenjiahuang3">
<header class="k_header_1"><a href="/user/login"><span class="k_hBack"></span></a>我的收藏</header>
<article  id="jiahuang22" class="clearfix"> 
	<c:forEach var="a" items="${CollectionDtoList }">
		<div id="shen22" class="clearfix">
			<div class="jia22">
				<a class="huang21" href="#">${a.tittle }</a>
				<p class="huang22">
					<span class="shu21"></span>${a.otherTittle }
				</p>
			</div>
			<div class="jia23">
				<p class="huang23">${a.createTime }</p>
				<nav class="huang24">
				<a class="shu22" href="javascript:;" onclick="canclecollection(${a.collectionId })">取消收藏</a> <a class="shu23"
					href="/article/detail/${a.id }">查看详情</a> </nav>
			</div>
		</div>
	</c:forEach>

</article>
</body>

</html>
